package com.polytech.diploma.StatAccumulator.Comparator;

import java.util.Comparator;

import com.polytech.diploma.OracleStat.SQLStatData;

public class GeneralCostComparator 
					extends StatComparator 
					implements Comparator<SQLStatData> 
{
	@Override
	public int compare(SQLStatData statData1, SQLStatData statData2) {
		
		return compareWithConfidenceRange(statData1.getOptimizerCost(),
											statData2.getOptimizerCost(),
											statData1.getUpdateFrequency(),
											statData2.getUpdateFrequency());
	}

}
